DEMO 3: Let's explore the grid we'll use for the rest of the activity!

This grid goes from -5 to +5 in both directions, with (0, 0) in the center. Each marked line shows a length of 1 unit.

  • Run your program. Add Move Forward and Turn Left commands to help the hedgehog collect all the keys.
  • Remember to change the numbers in your Move Forward commands so that your hedgehog reaches the keys!

To navigate the page using the TAB key, first press ESC to exit the code editor.

sprite.move_forward(4) sprite.turn_left(90) sprite.move_forward(4) sprite.turn_left(90) sprite.move_forward(4)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)